package com.splic.product.dto;

import lombok.Data;

@Data
public class LocationInfoDTO {
    public String key;
    public String localizedName;
    public String englishName;

    public CountryDTO country;
    public AdministrativeAreaDTO administrativeArea;
    public ParentCityDTO parentCity;
    public SupplementalAdminAreaDTO supplementalAdminArea;

    // Nested DTO classes

    @Data
    public static class CountryDTO {
        public String id;
        public String localizedName;
        public String englishName;
    }

    @Data
    public static class AdministrativeAreaDTO {
        public String id;
        public String localizedName;
        public String englishName;
        public Integer level;
        public String localizedType;
        public String englishType;
        public String countryID;
    }

    @Data
    public static class ParentCityDTO {
        public String key;
        public String localizedName;
        public String englishName;
    }

    @Data
    public static class SupplementalAdminAreaDTO {
        public Integer level;
        public String localizedName;
        public String englishName;
    }
}
